package com.ruoyi.shoppingcart.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 购物车对象 shoppingcart
 * 
 * @author yyg
 * @date 2023-11-24
 */
public class Shoppingcart extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 主键 */
    private Long sId;

    /** 用户id */
    @Excel(name = "用户id")
    private String uName;

    /** 商品id */
    @Excel(name = "商品id")
    private Long gId;

    /** 购买商品的数量 */
    @Excel(name = "购买商品的数量")
    private Long gNunmber;

    /** 商品总价 */
    @Excel(name = "商品总价")
    private Long gPrice;

    /** 商品名字 */
    @Excel(name = "商品名字")
    private String gName;

    public void setsId(Long sId) 
    {
        this.sId = sId;
    }

    public Long getsId() 
    {
        return sId;
    }
    public void setuName(String uName) 
    {
        this.uName = uName;
    }

    public String getuName() 
    {
        return uName;
    }
    public void setgId(Long gId) 
    {
        this.gId = gId;
    }

    public Long getgId() 
    {
        return gId;
    }
    public void setgNunmber(Long gNunmber) 
    {
        this.gNunmber = gNunmber;
    }

    public Long getgNunmber() 
    {
        return gNunmber;
    }
    public void setgPrice(Long gPrice) 
    {
        this.gPrice = gPrice;
    }

    public Long getgPrice() 
    {
        return gPrice;
    }
    public void setgName(String gName) 
    {
        this.gName = gName;
    }

    public String getgName() 
    {
        return gName;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("sId", getsId())
            .append("uName", getuName())
            .append("gId", getgId())
            .append("gNunmber", getgNunmber())
            .append("gPrice", getgPrice())
            .append("gName", getgName())
            .toString();
    }
}
